<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function funA(){
        console.log('aaaa')
    }

    function foo() {
        function funB(){
            console.log("bbbbbbb")
        }
        funA();
    }


    funB()
</script>
</body>
</html>